<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.staticfile.net/vue/2.7.8/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet">
</head>

<body>
<div id="app">
    <h1>表单控件绑定</h1>
    <input type="text" v-model="message" placeholder="请编辑">
    <p>Message is: {{message}}</p>

    <textarea v-model="message" placeholder="多行编辑" rows="8" cols="34"></textarea>
</div>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            message: '马里奥'
        }
    });
</script>
</body>
</html>